<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2019/4/10
 * Time: 11:38
 */

namespace common\sources\read\businessaccount;


use common\models\craftsman\BusinessAccount;

class BusinessAccountAccess implements IBusinessAccountAccess
{
    public function getBusinessAccount($bus_id)
    {
        return BusinessAccount::find()
            ->select('total_deposit,ava_deposit,freezing_deposit,ava_pepper,freezing_golds,cash_deposit')
            ->where(['bus_id' => $bus_id])
            ->asArray()
            ->one();
    }
}